Throw Custom Error (Custom Operators)
Synopsis
This operator can be used to throw custom errors.Description
The Throw Custom Error operator can be used to throw errors with a defined title, message and details that are shown as an error of the surrounding custom operator.
Input
- through (IOObject)
Data delivered to this port will be passed to the output port without any modification. Whenever an input port gets occupied, two new input and output ports become available. The order remains the same. Data delivered at the first input port is available at the first output port. It's not necessary to connect this port, the exception will be thrown anyway.
Output
- through (IOObject)
Provides the data which was delivered at the corresponding input port without any changes. Whenever an input port gets occupied, two new input and output ports become available. The order remains the same. Data delivered at the first input port is available at the first output port. It's not necessary to connect this port, the exception will be thrown anyway.
Parameters
- title The title of the error. Range: string
- message The error message. Range: string
- details The details for the error message. Range: string
Tutorial Processes
Introduction to the Throw Custom Error operator
This is a very basic process that demonstrates the use of the Throw Custom Error operator. In the process, the Branch operator checks the number of rows in the input table. If there are too few a custom error is thrown.
When this process is turned into a custom operator the error appears on the custom operator in case too few rows are in the input table.